package com.xmu.prcs.dao.impl;

import java.util.List;

import com.xmu.prcs.dao.RoleDao;
import com.xmu.prcs.entity.Role;

/**
 * 
 * @author frequent
 * @version 1.0,2012-3-20
 *
 */
public class RoleDaoImpl extends GenericDaoImpl<Role> implements RoleDao{

	public RoleDaoImpl() {
		super(Role.class);
	}

	public List<Role> getRoleByLevel(int level) {
		String query = LEVEL + " = " + level;
		List<Role> list = this.find(query);
		return list;
	}

}
